package me.jollyfly.jshop.content.client.model;


import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * @author jollyfly
 */

@Data
@ToString
@EqualsAndHashCode
@Entity
@Table(name = "tb_content_category")
public class ContentCategoryDO {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY, generator = "Mysql")
    private Long id;

    @Column(nullable = false)
    private Long parentId;

    @Column(length = 50)
    private String name;

    @Column(length = 1)
    private Integer status;

    @Column(length = 4)
    private Integer sortOrder;

    @Column(length = 1)
    private Boolean asParent;


    private String code;


    private Date created;


    private Date updated;


}
